<!DOCTYPE html>
<html>
  <head>
    <title>测试vue的条件与循环</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
	<script type="text/javascript" src="/js/vue.js"></script>
	
  </head>
  
  <body>
    <div id="app">
    	<p v-if="seen">这句话是用来测试v-if</p>
    	<button type="button" id="btn" v-on:click="test()">测试按钮</button>		
    </div>
    
    <script type="text/javascript">
    
    	var app = new Vue({
    		el:"#app",
    		data:{
    			seen:false
    		},
    		methods:{
    			test:function(){
    				this.seen = !(this.seen)
    			}
    		},
    		filters:{}
    		
    	
    	})
    </script>
    
  </body>
</html>
